<%@ Page Language="C#" AutoEventWireup="true" CodeFile="menu.aspx.cs" Inherits="Private_Config_Event_menu" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
	<script>
	function LaunchSearch(srch,uid,evtype,sevtype,clas,app,sdate,edate)
	{
		var params = "search.aspx?";
		params += "type=" + escape(evtype);
		params += "&severity=" + escape(sevtype);
		params += "&class=" + escape(clas);
		params += "&application=" + escape(app);
		params += "&criteria=" + escape(srch);
		params += "&uid=" + escape(uid);
		params += "&startdate=" + escape(sdate);
		params += "&enddate=" + escape(edate);
		parent.frames["ReportFrame"].location = params;
	}
	</script>
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:CollapseSection runat="server" Title="Search" Expanded="false">
<Flux:ShadePadBox runat="server">
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
	
	<tr><td class="help">Search text:</td></tr>
	<tr><td><asp:TextBox runat="server" ID="txtSearchText" Width="100%"/></td></tr>
	
	<tr><td class="help">For User:</td></tr>
	<tr><td><asp:DropDownList runat="server" ID="ddlUser" Width="100%"/></td></tr>
	
	<tr><td class="help">Event Type:</td></tr>
	<tr><td><asp:DropDownList runat="server" ID="ddlEventType" Width="100%"/></td></tr>

	<tr><td class="help">Severity:</td></tr>
	<tr><td><asp:DropDownList runat="server" ID="ddlSeverity" Width="100%"/></td></tr>

	<tr><td class="help">Class:</td></tr>
	<tr><td><asp:DropDownList runat="server" ID="ddlClass" Width="100%"/></td></tr>

	<tr><td class="help">Application:</td></tr>
	<tr><td><asp:DropDownList runat="server" ID="ddlApplication" Width="100%"/></td></tr>

	<tr><td class="help">From date:</td></tr>
	<tr><td><Flux:DateInput runat="server" ID="txtFromDate" Type="NORMAL"/></td></tr>

	<tr><td class="help">To date:</td></tr>
	<tr><td><Flux:DateInput runat="server" ID="txtToDate" Type="NORMAL"/></td></tr>

	<tr><td><asp:Button runat="server" ID="btnSearchGo" Text="Search" Width="100%" CssClass="button" UseSubmitBehavior="false" OnClick="btnSearchGo_Clicked" CausesValidation="false"/></td></tr>

	</table>
</Flux:ShadePadBox>
</Flux:CollapseSection>

<Flux:CollapseSection runat="server" Title="Configuration" Expanded="false">
<Flux:ShadePadBox runat="server">
	<asp:CheckBox runat="server" ID="chkGroupTypes" Checked=True AutoPostBack=True Text="Group event types" OnCheckedChanged="GroupTypesCheckChange"/>
	<br/><br/>
	<a class="fluxcolour" href="./configuration.aspx" target="ReportFrame">Event logging configuration</a>
</Flux:ShadePadBox>
</Flux:CollapseSection>

<Flux:CollapseSection runat="server" Title="Navigator" Expanded="true">
<Flux:ShadePadBox runat="server">
	<asp:TreeView runat="server" ID="navTree" ShowExpandCollapse="true" ShowLines="true">
		<NodeStyle HorizontalPadding="5" CssClass="fluxcolour" />
	</asp:TreeView>
</Flux:ShadePadBox>
</Flux:CollapseSection>

<Flux:CollapseSection runat="server" Title="Clear Logs" Expanded="false">
<Flux:ShadePadBox runat="server">
	<span class="help">If you want to clear everything, leave the date field blank. 
	Alternatively enter a date and everything prior to that date will be cleared.
	</span><br/>
	<Flux:DateInput runat="server" ID="txtClearBefore" Type="Normal"/>
	<Flux:DateInputValidator runat="server" EnableClientScript="true" ControlToValidate="txtClearBefore" AllowNulls="true" ErrorMessage="Invalid Date"/>
	<br/><span class="help">
		In order to carry out the clear down, 
		please type the word CONFIRM in the box below 
		and then click Cleardown.</span>
<asp:RequiredFieldValidator runat="server" ControlToValidate="txtConfirm" EnableClientScript="true" ErrorMessage="Enter CONFIRM" Display="Dynamic"/>
<asp:RegularExpressionValidator runat="server" ControlToValidate="txtConfirm" EnableClientScript="true" ErrorMessage="Enter CONFIRM" ValidationExpression="CONFIRM" Display="Dynamic" />
	<br/>
	<asp:TextBox runat="server" ID="txtConfirm"/>
	<asp:Button runat="server" ID="btnClearDown" Text="Cleardown" CssClass="button" UseSubmitBehavior="false" OnClick="btnClearDown_Clicked"/>
	
</Flux:ShadePadBox>
</Flux:CollapseSection>

</Flux:HostTable>
</form>
</body>
</html>
